import{action, observable} from 'mobx-miniprogram'

export const store= observable({
  messageNum:1,
  carNum:2,
  activeTabBarIndex:0,
  updateactiveTabBarIndex:action(function(index){
    this.activeTabBarIndex=index
  }),
  jiacarNum:action(function(){
    this.carNum=this.carNum+1
  }),
  jiancarNum:action(function(){
    this.carNum=this.carNum-1
  })
})